package com.itheima.springbootimport;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.Map;

@SpringBootApplication
public class SpringbootImportApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(SpringbootImportApplication.class, args);
        Map<String, User> map = context.getBeansOfType(User.class);
        System.out.println(map);
    }

}
